<br />
<p>&nbsp;</p>
<?php echo anchor(base_url() . 'admin/index/update', '+ Tambah', array('title' => 'Tambah berita.')); ?>
<table width="100%">
    <tr>
        <th width="5%">Urt</th>
        <th width="10%">Page</th>
        <th width="20%">Title Url</th>
        <th width="20%">Title</th>
        <th>Content</th>
        <th width="120">Action</th>
    </tr>
    <?php
    if ($berita) {
        $i = 1;
        foreach ($berita as $value) {
            ?>
            <tr>
                <td align="center"><?php echo $i++; ?></td>
                <td align="center"><?php echo $value['page'] ?></td>
                <td align="center"><?php echo $value['judul_url'] ?></td>
                <td align="center"><?php echo $value['judul'] ?></td>
                <td><em><?php echo $value['synopsis'] ?></em></td>
                <td align="center"><strong><?php echo anchor(base_url() . 'admin/index/update/' . $value['id'], 'Edit', array('title' => 'Update berita.')); ?> | <?php echo anchor(base_url() . 'admin/index/delete/' . $value['id'], 'Delete', array('title' => 'Tambah berita.', 'onclick' => "javascript:return confirm('anda yakin ?')")); ?></strong></td>
            </tr>
            <?php
        }
        ?>
        <tr>
        	<td colspan="6">
        		<?php echo $paging; ?>
        	</td>
        </tr>
        <?php 
    }
    ?>
</table>
<p>&nbsp;</p>